package cn.pfz.mapper;

import cn.pfz.domain.ConsumptionItem;
import cn.pfz.domain.ConsumptionItemExample;
import cn.pfz.domain.ConsumptionItemKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConsumptionItemMapper {
    int countByExample(ConsumptionItemExample example);
    
    int deleteByExample(ConsumptionItemExample example);
    
    int deleteByPrimaryKey(ConsumptionItemKey key);
    
    int insert(ConsumptionItem record);
    
    int insertSelective(ConsumptionItem record);
    
    List<ConsumptionItem> selectByExample(ConsumptionItemExample example);
    
    ConsumptionItem selectByPrimaryKey(ConsumptionItemKey key);
    
    int updateByExampleSelective(@Param("record") ConsumptionItem record,
                                 @Param("example") ConsumptionItemExample example);
    
    int updateByExample(@Param("record") ConsumptionItem record,
                        @Param("example") ConsumptionItemExample example);
    
    int updateByPrimaryKeySelective(ConsumptionItem record);
    
    int updateByPrimaryKey(ConsumptionItem record);
    
    List<ConsumptionItem> selectAll();
    
    List<ConsumptionItem> selectByCno(String cno);
    
    void deleteByCno(String cno);
}